﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OpenSda.Agilcont.Common.Business.Exceptions
{
    public sealed class ModuleAccessNotFoundException : Exception
    {
        public ModuleAccessNotFoundException()
            : base(string.Format("The ModuleAccess doesn't exist in the DataBase"))
        { }
    }

    public sealed class ModuleAccessCannotBeNullException : Exception
    {
        public ModuleAccessCannotBeNullException()
            : base(string.Format("ModuleAccess cannot be null"))
        { }
    }

    public sealed class ModuleAccessCodeInUseException : Exception
    {
        public ModuleAccessCodeInUseException()
            : base(string.Format("The ModuleAccess Code is already in use"))
        { }
    }

    public sealed class ModuleAccessNameInUseException : Exception
    {
        public ModuleAccessNameInUseException()
            : base(string.Format("The ModuleAccess Name is already in use"))
        { }
    }
}
